package com.nov.configuration;

import com.alibaba.fastjson.JSONObject;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class LoginInterceptor extends HandlerInterceptorAdapter {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        return false;
    }

    public static void main(String[] args) {
        JSONObject.parseObject(null);
        System.out.println(JSONObject.parseObject(null));
        System.out.println(JSONObject.parseObject(""));
        StringRedisTemplate template = null;
        template.boundHashOps("ddd").keys();
    }
}
